package Swing;

import javax.swing.*;
import java.awt.*;

public class TestCombobox_Demo extends JFrame {
    public TestCombobox_Demo() {
        Container contentPane = this.getContentPane();
        JComboBox comboBox = new JComboBox();

        comboBox.addItem("本周电影");
        comboBox.addItem("正在热映");
        comboBox.addItem("即将上映");
        comboBox.addItem("已下架");

        contentPane.add(comboBox);
        setVisible(true);
        setSize(500,500);
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }

    public static void main(String[] args) {
        new TestCombobox_Demo();
    }
}
